package com.xqboss.chain.domain.chain.dto;

import com.alibaba.fastjson2.JSONObject;
import lombok.Data;

/**
 * @author Trent
 * @date 2023/9/1
 */
@Data
public class EChainTxRetDto {
    private String hash;
    private String signTxInfo;
    private String reqNo;
    private String response;

    public boolean success(){
        String code = JSONObject.parseObject(response).getString("code");
        return "EC000000".equals(code) || "EC000001".equals(code);
    }
}
